﻿using MRSite.AutoMapper.Attributes;
using MRSite.Entity;
using ProtoBuf;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MRSite.EntityDto
{
    [AutoMapBoth(typeof(ProductType))]
    [ProtoContract]
    public class ProductTypeDto
    {
        [ProtoMember(1)]
        public int id { get; set; }


        [ProtoMember(2)]
        public String title { get; set; }


        [ProtoMember(3)]
        public int parent_id { get; set; }


        [ProtoMember(4)]
        public int sort_id { get; set; }


        [ProtoMember(5)]
        public int level_id { get; set; }


        [ProtoMember(6)]
        public String class_list { get; set; }


        [ProtoMember(7)]
        public String link_url { get; set; }


        [ProtoMember(8)]
        public String img_url { get; set; }

        [ProtoMember(9)]
        public String contents { get; set; }


        [ProtoMember(10)]
        public String seo_title { get; set; }


        [ProtoMember(11)]
        public String seo_keywords { get; set; }


        [ProtoMember(12)]
        public String seo_description { get; set; }

        [ProtoMember(13)]
        public int channel_id { get; set; }

        [ProtoMember(14)]
        public IList<ProductDto> ProductList { get; set; }

    }
}
